package com.zjj.learn.designmodel.work.responsibilityChain;

public class FinancialAudit extends ExpenseProcessHandler{

    /**
     * 在创建构造器时必须逼供下一个审核
     **/
    public FinancialAudit(ExpenseProcessHandler nextHandler) {
        super(nextHandler);
    }

    @Override
    public void handle(ExpenseApply apply) {

        //在这里也可以审核不通过，就不会向下面继续执行了
        System.out.println("财务审核通过");
        //下一级审核
        getNextHandler().handle(apply);
    }
}
